package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

/**
 * 吉客有钱
 */
public class JiKeYouQianUtil {

    public static String getLoanAmount(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la001.getValue())) {
            return "1";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la002.getValue())) {
            return "2";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la003.getValue())) {
            return "3";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la004.getValue())) {
            return "4";
        }
        return "5";
    }

    public static String getXueli(String xeuli) {
        if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl005.getValue())) {
            return "3";
        } else if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl004.getValue())) {
            return "3";
        } else if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl003.getValue())) {
            return "2";
        }
        return "1";
    }
    public static String getprofession(String profession) {
        if (StrUtil.equals(profession, BaseTypeInfoEnum.Gongzuo.gz002.getValue())) {
            return "4";
        } else if (StrUtil.equals(profession, BaseTypeInfoEnum.Gongzuo.gz003.getValue())) {
            return "1";
        }
        return "2";
    }


    public static String getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())) {
            return "0";
        } else if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj002.getValue())) {
            return "1";
        }
        return "2";
    }

    public static String getSheBao(String socialInsurance) {
        if (StrUtil.equals(socialInsurance, BaseTypeInfoEnum.Shebao.sb001.getValue())) {
            return "0";
        }else if (StrUtil.equals(socialInsurance, BaseTypeInfoEnum.Shebao.sb002.getValue())) {
            return "1";
        }
        return "2";
    }



    public static String getInsurance(String baodan) {
        if (StrUtil.equals(baodan, BaseTypeInfoEnum.Baoxian.bx001.getValue())) {
            return "0";
        }
        return "1";
    }


    public static String getZhima(String ZhimaScore) {
        if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm005.getValue())) {
            return "3";
        } else if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm004.getValue())) {
            return "2";
        } else if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm003.getValue())) {
            return "1";
        }else if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm001.getValue())) {
            return "0";
        }
        return "1";
    }
    public static String getShouru(String shouru) {
        if (StrUtil.equals(shouru, BaseTypeInfoEnum.Shouru.sr003.getValue())) {
            return "15000";
        } else if (StrUtil.equals(shouru, BaseTypeInfoEnum.Shouru.sr004.getValue())) {
            return "20000";
        }
        return "8000";
    }

    public static String getHouse(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.House.hu001.getValue())) {
            return "0";
        }
        return "2";
    }

    public static String getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())) {
            return "0";
        }
        return "2";
    }

    public static String getHuaBei(String HuaBei) {
        if (StrUtil.equals(HuaBei, BaseTypeInfoEnum.Huabei.hb001.getValue())) {
            return "0";
        } else if (StrUtil.equals(HuaBei, BaseTypeInfoEnum.Huabei.hb002.getValue())) {
            return "2";
        } else if (StrUtil.equals(HuaBei, BaseTypeInfoEnum.Huabei.hb003.getValue())) {
            return "2";
        } else if (StrUtil.equals(HuaBei, BaseTypeInfoEnum.Huabei.hb004.getValue())) {
            return "2";
        }
        return "1";
    }
    public static String getyongtu(String yongtu) {
        if (StrUtil.equals(yongtu, BaseTypeInfoEnum.Yongtu.yt005.getValue())) {
            return "4";
        } else if (StrUtil.equals(yongtu, BaseTypeInfoEnum.Yongtu.yt004.getValue())) {
            return "2";
        }
        return "1";
    }
    public static String getloantime(String loantime) {
        if (StrUtil.equals(loantime, BaseTypeInfoEnum.LoanTime.lt004.getValue())) {
            return "02";
        }
        return "01";
    }

    public static String getBiaoTiao(String BiaoTiao) {
        if (StrUtil.equals(BiaoTiao, BaseTypeInfoEnum.Baitiao.bt001.getValue())) {
            return "0";
        } else if (StrUtil.equals(BiaoTiao, BaseTypeInfoEnum.Baitiao.bt002.getValue())) {
            return "2";
        } else if (StrUtil.equals(BiaoTiao, BaseTypeInfoEnum.Baitiao.bt003.getValue())) {
            return "2";
        } else if (StrUtil.equals(BiaoTiao, BaseTypeInfoEnum.Baitiao.bt004.getValue())) {
            return "2";
        }
        return "1";
    }

}
